/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.program;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 固件程序管理Entity
 * @author unnamed
 * @version 2017-12-20
 */
public class EleSourceProgram extends DataEntity<EleSourceProgram> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 类型
	private String name;
	private String version;		// 版本号
	private String path;		// 程序路径
	private String path1;		// 程序路径
	private String path2;		// 程序路径
	private String sign;		// MD5
	private String groupId;
	
	public EleSourceProgram() {
		super();
	}

	public EleSourceProgram(String id){
		super(id);
	}

	@Length(min=0, max=255, message="类型长度必须介于 0 和 255 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPath1() {
		return path1;
	}

	public void setPath1(String path1) {
		this.path1 = path1;
	}

	public String getPath2() {
		return path2;
	}

	public void setPath2(String path2) {
		this.path2 = path2;
	}

	@Length(min=1, max=255, message="程序路径长度必须介于 1 和 255 之间")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	@Length(min=0, max=255, message="MD5长度必须介于 0 和 255 之间")
	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public String getName(){
		return name;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getVersion(){
		return version;
	}

	public void setVersion(String version){
		this.version = version;
	}
}